package com.ruoyi.study.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.study.mapper.StyImagMapper;
import com.ruoyi.study.domain.StyImag;
import com.ruoyi.study.service.IStyImagService;

/**
 * imageService业务层处理
 * 
 * @author dwb
 * @date 2024-09-02
 */
@Service
public class StyImagServiceImpl implements IStyImagService 
{
    @Autowired
    private StyImagMapper styImagMapper;

    /**
     * 查询image
     * 
     * @param id image主键
     * @return image
     */
    @Override
    public StyImag selectStyImagById(Long id)
    {
        return styImagMapper.selectStyImagById(id);
    }

    /**
     * 查询image列表
     * 
     * @param styImag image
     * @return image
     */
    @Override
    public List<StyImag> selectStyImagList(StyImag styImag)
    {
        return styImagMapper.selectStyImagList(styImag);
    }

    /**
     * 新增image
     * 
     * @param styImag image
     * @return 结果
     */
    @Override
    public int insertStyImag(StyImag styImag)
    {
        return styImagMapper.insertStyImag(styImag);
    }

    /**
     * 修改image
     * 
     * @param styImag image
     * @return 结果
     */
    @Override
    public int updateStyImag(StyImag styImag)
    {
        return styImagMapper.updateStyImag(styImag);
    }

    /**
     * 批量删除image
     * 
     * @param ids 需要删除的image主键
     * @return 结果
     */
    @Override
    public int deleteStyImagByIds(Long[] ids)
    {
        return styImagMapper.deleteStyImagByIds(ids);
    }

    /**
     * 删除image信息
     * 
     * @param id image主键
     * @return 结果
     */
    @Override
    public int deleteStyImagById(Long id)
    {
        return styImagMapper.deleteStyImagById(id);
    }
}
